package com.yuyu.qingmangmall.cart.service;

import com.yuyu.qingmangmall.cart.to.UserInfoTo;
import com.yuyu.qingmangmall.cart.vo.Cart;
import com.yuyu.qingmangmall.cart.vo.CartItem;

import java.util.List;
import java.util.concurrent.ExecutionException;

public interface CartService {
    CartItem addToCart(Long skuId, Integer num) throws ExecutionException, InterruptedException;

    CartItem getCartItem(Long skuId);

    Cart getCart(UserInfoTo userInfoTo);

    List<CartItem> getCurrentUserCartItems();
}
